package com.mutual.reins.utils.constraint;

import lombok.Getter;

/**
 * 异常信息枚举类
 * @author Guosd
 * @Data 2020-11-11 18:20:39
 */
public enum UserExceptionEnum {
    //提核送再保异常信息
    REINS_INTERF_MESSAGE("21001","核心提交核保送再保,再保数据数据生成失败！"),
    REINS_INTERF_VERIFY_MESSAGE("21002","核保通过校验再保校验失败！"),

    //审核校验异常信息
    REINS_REINSCHECKDATA("30001","再保投保单危险单位数据校验时发生异常"),
    REINS_DELETEREINSDATA("30002","再保投保单数据下发修改时发生异常"),
    REINS_CHECKRETENTIONVALUE("30003","再保自留保额信息获取失败"),
    REINS_CHECKREINSRETENTIONDATA("30004","自动核保再保系统自留保额校验时发生异常"),

    REINS_FEOENQUIRY_OUT_CONFRIM("31002","审核通过前再保数据检查，请确认再保临分分出确认状态。"),
    REINS_FEOENQUIRY_IN_CONFRIM("31003","审核通过前再保数据检查，请确认再保临分分入确认状态。"),
    REINS_RISK_ASSESSMENT("31004","审核通过前再保数据检查，请确认再保是否做风险评估。"),
    REINS_DANGER_SHARE("31005","审核通过前再保数据检查，请确认再保危险单位占比。"),
    REINS_CERTI_TYPE("31006","审核通过前再保数据检查，请确认核心传送业务类型。"),
    REINS_REINS_CONFRIM("31008","审核通过前再保数据检查，请提交再保确认。"),
    REINS_TRIAL_NOT_EXISTS("31009","请先进行再保分保试算，再进行审核通过！"),
    REINS_GUARANTEERETEN_EXCESS("31010","保证险类自留额超过监管规定，请提交再保临分！"),
    REINS_RESPONSIBILITYRETEN_EXCESS("31011","责任险类自留额超过监管规定，请提交再保临分！"),
    //生成再保数据异常
    REINS_SAVE_REINSINTERFLOG("3001","再保系统日志表生成错误"),
    REINS_UPDATE_REINSINTERFLOG("3002","再保系统更新日志表生成错误"),
    REINS_DELETE_DELETEREINSPOLICY("4001","删除再保系统数据失败"),
    REINS_SAVE_REINSPOLICYINTERF("3003","再保系统中间表生成错误"),
    //承保传再保数据校验某一字段为空，再保系统数据生成失败
    REINS_COLUMN_ISNULL("0001","承保传再保数据校验某一字段为空，再保系统数据生成失败"),
    //投保单试算异常信息
    REINS_PRPTTRIAL_NOT_EXISTS("T001","投保单试算未查询到投保单单号");

    @Getter
    private String code;
    @Getter
    private String message;

    UserExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

}